
<script>
    function dr_update_category_0() {
        dr_iframe_show('{dr_lang('一键更新栏目')}', '{dr_url('module/api/update_category_repair')}&all=1&mid={$dir}', '500px', '300px')
    }
    function dr_update_category_1() {
        dr_iframe_show('{dr_lang('栏目自定义字段')}', '{dr_url('field/index')}&is_menu=1&rname=category-{$dir}', '80%', '90%')
    }
    function dr_update_category_2() {
        dr_iframe_show('{dr_lang('栏目字段权限划分')}', '{dr_url(APP_DIR.'/category/field_add')}', '80%', '90%')
    }
</script>

<label><a class="btn btn-sm green" href="{dr_url(APP_DIR.'/category/config_add')}"> {dr_lang('栏目属性设置')} </a></label>
<label><a class="btn btn-sm red"  onclick="dr_update_category_1()" href="javascript:;"> {dr_lang('栏目自定义字段')} </a></label>
<label><a class="btn btn-sm yellow"  onclick="dr_update_category_2()" href="javascript:;"> {dr_lang('栏目字段权限')} </a></label>
<label><a class="btn btn-sm blue" onclick="dr_update_category_0()" href="javascript:;"> {dr_lang('一键更新栏目')} </a></label>
{if $_GET['s']=='quan'}
<div style="margin-top: 20px;">
	</br><span style="color: #ff0808;">必须有二级栏目，原因：圈子要分在二级栏目</span>
</div>

{/if}